<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" errorPage="error.jsp" isELIgnored="true" %>
<jsp:useBean id="index_user" class="com.drophair.jspwork.bean.User" scope="session"/>
<!DOCTYPE html>
<html>
<head>
    <title>首页</title>
</head>
<body>
<header>
    <div>
        <%!
            int vistor_num = 0;
            synchronized void add(){
                vistor_num++;
            }
        %>
        <%add();%>
        截止 <%=(new java.util.Date()).toLocaleString()%>，访问人数：<%=vistor_num%>
    </div>
</header>
<h1><%= "Hello World!" %>
</h1>
<br/>
<%
    String uid="";
    String upwd="";
    uid=request.get
//    if(index_user.getUid()!=null||index_user.getUid().equals("")){
%>
<a>登录</a>/<a>注册</a>
<%}else{%>
<jsp:getProperty name="index_user" property="uid"/>
%>
<%
    }
%>
</body>
</html>